﻿using System;
using System.Collections.Generic;
using System.Text;

namespace Alisoft.SIP
{
    public class Constants
    {
        /// <summary>
        /// TimeStamp Format String
        /// </summary>
        public static string SIP_TIMESTAMP_FORMATER = "yyyy-MM-dd HH:mm:ss" ;

        /// <summary>
        /// isv应用的身份认证
        /// </summary>
        public static string PARAMETER_APPKEY = "sip_appkey" ;

        /// <summary>
        /// isv应用的密钥
        /// </summary>
        public static string PARAMETER_APPSECRET = "sip_appsecret";

        /// <summary>
        /// API服务的名称
        /// </summary>
        public static string PARAMETER_APINAME = "sip_apiname";

        /// <summary>
        /// 请求时的时间戳 
        /// </summary>
        public static string PARAMETER_TIMESTAMP = "sip_timestamp";

        /// <summary>
        /// 请求签名
        /// </summary>
        public static string PARAMETER_SIGN = "sip_sign";

        /// <summary>
        /// SIP提供的服务命令描述参数
        /// </summary>
        public static string PARAMETER_SERVICE_COMMAND = "sip_service_command";

        /// <summary>
        /// 响应格式xml/json/cvs
        /// </summary>
        public static string PARAMETER_FORMAT = "sip_format";

        /// <summary>
        /// 
        /// </summary>
        public static string PARAMETER_SESSIONID = "sip_sessionid";

        /// <summary>
        /// ISP回调SIP时需提供的用户名key
        /// </summary>
        public static string PARAMETER_USERNAME = "sip_username";

        /// <summary>
        /// SIP的返回状态码
        /// </summary>
        public static string PARAMETER_REDIRECTURL = "sip_redirecturl"; 

        /// <summary>
        /// 需要查询的Token类型,request或者session，默认不传就是session
        /// </summary>
        public static string PARAMETER_TOKEN_TYPE = "sip_tokentype";

        /// <summary>
        /// SIP的返回状态码
        /// </summary>
        public static string HEADER_SIPSTATUS = "sip_status"; 

        /// <summary>
        /// 出错时SIP返回的出错信息
        /// </summary>
        public static string HEADER_SIP_ERROR_MESSAGE = "sip_error_message";

        /// <summary>
        /// 需要定位到isp的登陆地址
        /// </summary>
        public static string HEADER_SIP_ISP_LOGINURL = "sip_isp_loginurl";

        /// <summary>
        /// SIP API 入口地址
        /// 正式环境：http://sip.alisoft.com/sip/rest
        /// 开发、测试环境：http://sipdev.alisoft.com 
        /// </summary>
        public static string SIP_API_URL = "sip_api_url";

        /// <summary>
        /// SIP service 入口地址
        /// 正式环境:  http://sip.alisoft.com/sip/sipService 
        /// 开发测试环境: http://sipdev.alisoft.com/sip/sipService
        /// </summary>
        public static string SIP_SERVICE_URL = "sip_service_url";

        /// <summary>
        /// 
        /// </summary>
        public static string API_SECURITY_TYPE_NOTNEED = "0";
        public static string API_SECURITY_TYPE_SIP = "1";
        public static string API_SECURITY_TYPE_USER = "2";
        public static string API_SECURITY_TYPE_USERORNOT = "3";

        /// <summary>
        /// 
        /// </summary>
        public static string HTTP_SIP_STATUS = "sip_status";
        public static string HTTP_METHOD_POST = "POST";
        public static string HTTP_METHOD_GET = "GET";

        public static string CHARACTER_ENCODING = "UTF-8";
    }
}
